package com.zjj.lbw.algorithm.tree.entity;

/**
 * @author zhanglei.zjj
 * @description leetcode二叉树题目 树对象
 * @date 2023/3/12 22:12
 */
public class TreeNode {
    public int val;
    public TreeNode left;
    public TreeNode right;

    TreeNode() {
    }

    TreeNode(int val) {
        this.val = val;
    }

    TreeNode(int val, TreeNode left, TreeNode right) {
        this.val = val;
        this.left = left;
        this.right = right;
    }
}